<template>
    用户ID为{{ getId }}
  </template>
  
  <script setup>
  import { ref } from 'vue'
  import { useRoute } from 'vue-router'
  
  const route = useRoute()
  const getId = ref(route.params.id)
  </script>